export const utils = {
  formatDate: (time) => { // 转换时间戳格式
    var date = new Date(time);
    var y = 1900 + date.getYear();
    var m = "0" + (date.getMonth() + 1);
    var d = "0" + date.getDate();
    var hour = "0" + date.getHours();
    var minute = "0" + date.getMinutes();
    return y + "-" + m.substring(m.length - 2, m.length) + "-" + d.substring(d.length - 2, d.length) + " " + hour.substring(hour.length - 2, hour.length) + ":"
      + minute.substring(minute.length - 2, minute.length);
  }
}